<html>
<head>
  <title>信息管理</title>
  <meta name="layout" content="common_header"/>
  <link rel="stylesheet" type="text/css" href="${resource(dir: 'css', file: 'jquery.validate.css', absolute: true)}"/>

  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'common.custom.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.metadata.pack.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.validate.min.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.form.min.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.blockUI.min.js', absolute: true)}"></script>

  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.validate.custom.js', absolute: true)}"></script>

  <script type="text/javascript">
    jQuery(document).ready(function() {
      jQuery("#submitForm").validate({
        errorPlacement: function(error, element) {
          error.appendTo(element.parent("td"));
        },
        submitHandler: function(form) {
          jQuery.blockUI();
          jQuery(form).ajaxSubmit({
            success: function(response) {
              jQuery.unblockUI();
            }
          });
        }
      });

      bindSave();
      /*jQuery('#doSave').click(function(){
       alert(jQuery("#submitForm").valid())
       });*/
    });


  </script>
</head>
<body>
<div id="man_zone">
  <form id="submitForm" name="submitForm" action="${createLink(controller: "scaffold", action: 'save', absolute: true)}" method="post">
    <input type="hidden" name="property" value="${bo?.class.simpleName}"/>
 
    <input type="hidden" name="view" value="${forward}"/>

    <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">

      <tr>
        <td width="20%" class="left_title_1">接收人</td>
        <td width="30%" class="fillin">
           <select id="receiver" name="receiver">
              <option>所有人</option>
              <option>普通经纪人</option>
              <option>个人经纪人</option>
          </select>
        </td>

          <td width="20%" class="left_title_1">链接</td>
        <td width="30%" class="fillin">
           <input  id="link" name="link" size="35" />
        </td>

      </tr>


      <tr>

        <td width="20%" class="left_title_1">内容</td>
        <td  class="fillin" colspan="3">
           <textarea cols="50" rows="10" name="msgContent"></textarea>
        </td>
      </tr>

            <tr>
        <td align="center" colspan="2">
          <a id="doSave" href="javaScript:void(0)"><img src="${resource(dir: '/images/admin_ui/', file: 'save1.gif', absolute: true)}" alt="保存"/></a>
        </td>

      </tr>


    </table>
  </form>
</div>

</body>

</html>
